package service;

import java.util.List;

import dao.UserDao;
import entity.User;

public class UserService {

	public User validateUser(String name){
		User[] users = UserDao.getAllUser();
		for(User u : users){
			if(u.getUsername().equals(name))
				return u;
		}
		return null;
	}
	
	public List<User> getAllTracer(){
		return UserDao.getAllTracer();
	}
}
